<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="addStockUnitClick()" >新增</button>
                <button class="layui-btn" ng-click="addBatchStockUnitClick()">批量新增</button>
                <button class="layui-btn" ng-click="modifyStockUnitClick()" >编辑</button>
                <button class="layui-btn" ng-click="startStockUnitClick()">启用</button>
                <button class="layui-btn" ng-click="stopStockUnitClick()">禁用</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <button class="layui-btn" ng-click="refreshClick()"><i class="layui-icon">ဂ</i></button>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>库位代码</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.locCode" />
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>所属仓库</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.warehouse">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="warehouse in (dropDownList.warehouse | filter: $select.search) track by warehouse.value">
                                    <span ng-bind="warehouse.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>所属库区</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.zone">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.zeZoneCode"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="zone in (dropDownList.zone | filter: $select.search) track by zone.zeZoneCode">
                                    <span ng-bind="zone.zeZoneCode"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.status">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="status in (dropDownList.status | filter: $select.search) track by status.value">
                                    <span ng-bind="status.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table serial minScreen stockUnitTable">
                <tbody>
                    <tr>
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>库位代码</th>
                        <th>层</th>
                        <th>排</th>
                        <th>列</th>
                        <th>长(mm)</th>
                        <th>宽(mm)</th>
                        <th>状态</th>
                        <th>所属仓库代码</th>
                        <th>所属仓库名称</th>
                        <th>所属库区代码</th>
                        <th>所属库区名称</th>
                    </tr>
                    <tr ng-repeat="stockUnit in stockUnitList">
                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" ng-model="checkboxes.item[stockUnit.id].checked" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="stockUnit.locCode"></td>
                        <td ng-bind="stockUnit.locLevel"></td>
                        <td ng-bind="stockUnit.locRow"></td>
                        <td ng-bind="stockUnit.locColumn"></td>
                        <td ng-bind="stockUnit.locLength"></td>
                        <td ng-bind="stockUnit.locWidth"></td>
                        <td ng-bind="stockUnit.locEnableFlag | stockUnitFilter"></td>
                        <td ng-bind="stockUnit.locWhCode"></td>
                        <td ng-bind="stockUnit.locWhName"></td>
                        <td ng-bind="stockUnit.locZoneCode"></td>
                        <td ng-bind="stockUnit.locZoneName"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>